package com.outstanding.ifml;

import java.nio.charset.Charset;

import com.outstanding.ifml.parser.DefaultIFMLLexer;
import com.outstanding.ifml.parser.DefaultParser;

/**
 * 解析Properties
 * @author chenzhixuan
 *
 */
public class IFMLPaserProperties {

	private int tab_size = 4;
	
	private boolean translate_tab_space = true;
	
	private Charset encoding =Charset.forName("utf-8");
	
	private String LexerClass =  DefaultIFMLLexer.class.getName();
	
	private String parserClass =  DefaultParser.class.getName();
	
	private String onlyOneProperyName="desc";
	
	public final static String BLANK=" ";
	
	public String getOnlyOneProperyName() {
		return onlyOneProperyName;
	}
	public void setOnlyOneProperyName(String onlyOneProperyName) {
		this.onlyOneProperyName = onlyOneProperyName;
	}
	public String getParserClass() {
		return parserClass;
	}
	public void setParserClass(String parserClass) {
		this.parserClass = parserClass;
	}
	public String getLexerClass() {
		return LexerClass;
	}
	public void setLexerClass(String lexerClass) {
		LexerClass = lexerClass;
	}
	public boolean isTranslate_tab_space() {
		return translate_tab_space;
	}
	public void setTranslate_tab_space(boolean translate_tab_space) {
		this.translate_tab_space = translate_tab_space;
	}
	public int getTab_size() {
		return tab_size;
	}
	public void setTab_size(int tab_size) {
		this.tab_size = tab_size;
	}
	public Charset getEncoding() {
		return encoding;
	}
	public void setEncoding(String encoding) {
		this.encoding = Charset.forName(encoding);
	}
	
}
